<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>ueditor图片对话框</title>
    <script type="text/javascript" src="../internal.js"></script>

    <!-- jquery -->
    <script type="text/javascript" src="../../third-party/jquery-1.10.2.min.js"></script>



    <!-- attachment dialog -->
    <link rel="stylesheet" href="attachment.css" type="text/css" />
</head>
<body>

    <div class="wrapper">
        <div id="tabhead" class="tabhead">
            <span class="tab focus" data-content-id="upload"><var id="lang_tab_upload"></var></span>
            <!--<span class="tab" data-content-id="online"><var id="lang_tab_online"></var></span>-->
        </div>
        <div id="tabbody" class="tabbody">
            <!-- 上传图片 -->
            <div id="selectfilebutton" onClick="selectfiles('',insertimg,'file')" style="font-size: 18px;
    background: #00b7ee;
    border-radius: 3px;
    line-height: 44px;
    padding: 0 30px;
    color: #fff;
    display: inline-block;
    margin: 0 auto 20px auto;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); margin-left:250px; margin-top:134px;">选择图片</div>

        </div>
    </div>
    <script type="text/javascript" src="attachment.js"></script>

</body>
</html>
<script type="text/javascript" src="/static/js/jquery.min.js"></script>
<script type="text/javascript" src="/static/webuploader/kinderfile.js"></script>
<script language="javascript">
$(function(){
  $("#selectfilebutton").click();
})
function insertimg(data){
	var list=[];
	for(var i=1;i<=getJsonLength(data);i++){

		var file_name=data[i].file_name;
		var file_path=data[i].file_path;
		list.push({
			title: file_name,
			url: file_path
		});
	}
	editor.execCommand('insertfile',list);
	parent.document.getElementById("edui171_body").click();
}
</script>